import request from '@/utils/request'

// 查询工程列表
export function listProject(query) {
  return request({
    url: '/system/project/list',
    method: 'get',
    params: query
  })
}

// 查询工程详细
export function getProject(proId) {
  return request({
    url: '/system/project/' + proId,
    method: 'get'
  })
}

// 新增工程
export function addProject(data) {
  return request({
    url: '/system/project',
    method: 'post',
    data: data
  })
}

// 修改工程
export function updateProject(data) {
  return request({
    url: '/system/project',
    method: 'put',
    data: data
  })
}

// 删除工程
export function delProject(proId) {
  return request({
    url: '/system/project/' + proId,
    method: 'delete'
  })
}

// 导出工程
export function exportProject(query) {
  return request({
    url: '/system/project/export',
    method: 'get',
    params: query
  })
}